package cn.hl.hm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.hl.hm.dao.UserMapper;
import cn.hl.hm.dao.VehicleTypeMapper;
import cn.hl.hm.entity.VehicleType;
import cn.hl.hm.service.VehicleTypeService;
@Service
public class VehicleTypeServiceImpl implements VehicleTypeService {
	@Autowired
	private VehicleTypeMapper vtMapper;
	@Override
	public List<VehicleType> selectVehicleType(VehicleType vehicleType) {
		// TODO Auto-generated method stub
		return vtMapper.selectVehicleType(vehicleType);
	}

	@Override
	public List<VehicleType> selectByIds(List<Integer> ids) {
		return vtMapper.selectByIds(ids);
	}

	@Override
	public int addVehicleType(VehicleType vehicleType) {
		// TODO Auto-generated method stub
		return vtMapper.insertSelective(vehicleType);
	}

	@Override
	public int updateVehicleType(VehicleType vehicleType) {
		// TODO Auto-generated method stub
		return vtMapper.updateByPrimaryKey(vehicleType);
	}

	@Override
	public int deleteVehicleType(Integer id) {
		// TODO Auto-generated method stub
		return vtMapper.deleteByPrimaryKey(id);
	}

	@Override
	public VehicleType selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return vtMapper.selectByPrimaryKey(id);
	}

}
